/*
 * @Author: qiye
 * @LastEditors: qiye
 * @description: page description
 * @Date: 2023-10-19 14:26:21
 * @LastEditTime: 2023-10-20 12:04:23
 */
import { saveAs } from 'file-saver'

export const saveFile = (data: any, options: any) => {
  const { name } = options
  // 文件
  const blob = new Blob([data], {
    type: 'application/zip;'
  })
  saveAs(blob, `${name}.zip`)
}
